#ifndef OXFORDTASKVIEW_H
#define OXFORDTASKVIEW_H

#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QFormLayout>
#include <QLabel>
#include "task-view.h"
#include "task.h"

namespace Oxford
{

class TaskView : public Core::ITaskView
{
    Q_OBJECT

private:
    Core::ITask* _task;
    QWidget* _widget;

    QLabel question;
    QPushButton* answerButton;
    QLineEdit* userAnswer;
    QFormLayout* layout;
public:
    explicit TaskView();

    void draw(QWidget* parent, Core::ITask* task);

private slots:
    void answerButtonClicked();
};

}

#endif // OXFORDTASKVIEW_H
